package com.sinog.basic.service.common;

import com.sinog.basic.mapper.common.CommonBasicMapper;
import com.sinog.core.utilbean.Result;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * @desc basic通用service实现类
 * @author zy
 * @date 2019年6月20日 18点00分
 */
@Service
public class CommonBasicServiceImpl implements CommonBasicService {

    @Resource
    private CommonBasicMapper commonBasicMapper;

    /**
     * 获取角色对应的机构级别
     * @param loginUserLevel loginUserLevel
     * @return Result
     */
    @Override
    public Result getOrgLevelList(String loginUserLevel) {
        List<Map<String,String>> allOrgLevelList = commonBasicMapper.getOrgLevelList(loginUserLevel);
        return Result.success(allOrgLevelList);
    }
}